package cn.genmer.test.security.designpatterns.decorator.mydrink;

import cn.genmer.test.security.designpatterns.decorator.Drink;

public class MilkTea extends Drink{

    public MilkTea(){
        setName("奶茶");
        setPrice(10.0f);  // 奶茶单价
    }

    @Override
    public float cost() {
        return getPrice();
    }
}
